/*    */ package com.lmpop.createIndex.search;
/*    */ 
/*    */ import com.lmpop.createIndex.searchModel.Queue;
/*    */ import com.lmpop.createIndex.searchModel.QueueValue;
/*    */ import com.lmpop.createIndex.searchModel.SearchData;
/*    */ import com.lmpop.createIndex.searchModel.SearchModel;
/*    */ import java.io.IOException;
/*    */ import java.util.ArrayList;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ 
/*    */ public class NewsTopChanelIndexFiles
/*    */ {
/*    */   public ProperUtil properUtil;
/*    */   private String file_path;
/*    */ 
/*    */   public NewsTopChanelIndexFiles()
/*    */   {
/* 20 */     this.properUtil = new ProperUtil();
/* 21 */     this.file_path = this.properUtil.getFilePathByModel("newstopchannel");
/*    */   }
/*    */ 
/*    */   public List getTopChannelInfo(Map paraMap) throws IOException {
/* 25 */     ArrayList showList = new ArrayList();
/* 26 */     SearchData search = new SearchData();
/* 27 */     ArrayList paraList = new ArrayList();
/*    */ 
/* 29 */     String ch_id = ""; String up_ch_id = ""; String ch_level = "";
/* 30 */     if (paraMap.get("ch_id") != null) ch_id = paraMap.get("ch_id").toString();
/* 31 */     if (paraMap.get("up_ch_id") != null) up_ch_id = paraMap.get("up_ch_id").toString();
/* 32 */     if (paraMap.get("ch_level") != null) ch_level = paraMap.get("ch_level").toString();
/*    */ 
/* 34 */     Queue queue = new Queue(new QueueValue[] { new QueueValue("sort", 2, false) });
/* 35 */     paraList.add(new SearchModel("0", "ch_id", ch_id));
/* 36 */     paraList.add(new SearchModel("0", "up_ch_id", up_ch_id));
/* 37 */     paraList.add(new SearchModel("0", "ch_level", ch_level));
/* 38 */     showList = search.getSearchInfo(this.file_path, paraList, queue);
/* 39 */     return showList;
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.createIndex.search.NewsTopChanelIndexFiles
 * JD-Core Version:    0.6.0
 */